class VisitListModel {
  final int? total;
  List<VisitInfo>? rows;

  VisitListModel({this.rows, this.total});

  factory VisitListModel.fromJson(Map<String, dynamic> json) {
    final originList = json['rows'] as List?;
    List<VisitInfo> protocolList =
        (originList??[]).map((value) => VisitInfo.fromJson(value)).toList();
    return VisitListModel(rows: protocolList, total: json['total']);
  }
}

class VisitInfo {
  String? preName;
  String? customerName;
  String? orgName;
  String? visitTime;
  String? confirmTime;
  int? id;
  int? customerId;
  int? orgId;
  int? mealStandardId;
  num? visitHumanNum;
  String? sourceNames;
  String? sourceIds;
  String? mealStandardName;
  String? validStatusName;
  String? validStatus;
  String? companyName;
  String? contactName;
  String? contactMobile;
  String? remark;
  String? confirmRemark;
  String? confirmName;
  String? receptionRemark;
  String? receptionHumanNum;
  String? updatedDate;

  VisitInfo({
    this.preName,
    this.updatedDate,
    this.receptionHumanNum,
    this.receptionRemark,
    this.confirmTime,
    this.sourceIds,
    this.customerId,
    this.customerName,
    this.orgName,
    this.visitTime,
    this.id,
    this.orgId,
    this.mealStandardId,
    this.visitHumanNum,
    this.sourceNames,
    this.mealStandardName,
    this.validStatusName,
    this.validStatus,
    this.companyName,
    this.contactName,
    this.contactMobile,
    this.remark,
    this.confirmRemark,
    this.confirmName,
  });

  VisitInfo.fromJson(Map data) {
    preName = data["preName"];
    updatedDate = data["updatedDate"];
    receptionHumanNum = data['receptionHumanNum'];
    receptionRemark = data['receptionRemark'];
    confirmRemark = data['confirmRemark'];
    confirmTime = data['confirmTime'];
    remark = data['remark'];
    contactMobile = data['contactMobile'];
    contactName = data['contactName'];
    companyName = data['companyName'];
    sourceIds = data['sourceIds'];
    mealStandardId = data['mealStandardId'];
    orgId = data['orgId'];
    customerId = data['customerId'];
    customerName = data['customerName'];
    orgName = data['orgName'];
    id = data['id'];
    visitTime = data['visitTime'];
    visitHumanNum = data['visitHumanNum'];
    sourceNames = data['sourceNames'];
    mealStandardName = data['mealStandardName'];
    validStatusName = data['validStatusName'];
    confirmName = data['confirmName'];
    validStatus = data['validStatus'].toString();
  }
}
